package com.yxhl.zoume.core.busticket.view;

import com.yxhl.protobuf.BizOrder;
import com.yxhl.protobuf.OneBusEntry;
import com.yxhl.zoume.common.ui.view.BaseView;
import com.yxhl.zoume.data.http.model.busticket.ZMBusTicketOrder;

/**
 * Created by Xboy on 16/4/21.
 */
public interface BusTicketOrderView extends BaseView {

    /**
     * 等待车次详情
     */
    void waitingForBusServiceDetailRequest(boolean isWaiting);

    /**
     * 返回车次详情
     *
     * @param busService
     */
    void renderBusServiceDetail(OneBusEntry busService);

    /**
     * 等待确认订单
     */
    void waitingForOrderConfirm(boolean isWaiting);

    /**
     * 返回锁票结果
     *
     * @param busTicketOrder
     */
    void renderBusTicketOrder(ZMBusTicketOrder busTicketOrder);

    /**
     * 返回固定时刻类巴士订单
     *
     * @param order
     */
    void renderFixedTimeBusOrder(BizOrder order);

    /**
     * 锁票接口：服务端返回的错误信息
     *
     * @param errorMessage
     */
    void showErrorMessage(String errorMessage);

    /**
     * 锁票失败回调
     *
     * @param errorMessage
     */
    void renderOnFailure(String errorMessage);
}
